# _*_ coding: utf-8 _*_

class BaseConfig(object):
    # 调试模式是否开启
    DEBUG = True

class DevConfig(object):
    # 调试模式是否开启
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@localhost/python'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SECRET_KEY='_blog_'

class TestConfig(object):
    # 调试模式是否开启
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@localhost/python'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SECRET_KEY='_blog_'

class ProConfig(object):
    # 调试模式是否开启
    DEBUG = False
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@localhost/python'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SECRET_KEY='_blog_'

setting ={
        'dev':DevConfig,
        'test':TestConfig,
        'prod':ProConfig,
        'default':DevConfig
}